Interrupt 21h Function 713Bh
Changes the
current directory to the directory specified by the given path.
mov ax, 713Bh
; Change Directory
mov dx, seg Path
; see below
mov ds, dx
mov dx, offset Path
int 21h
jc error
Parameters
Path
Address of a
null-terminated string specifying the directory to change to. The path, which
can include the drive letter, must be a valid path for the given volume. Long
filenames are allowed.
Return Value
Clears the
carry flag if successful. Otherwise, the function sets the carry flag and sets
the AX register to an error value.
Remarks
The current
or default directory is the directory that the system uses whenever an
application supplies a filename that does not explicitly specify a directory.
Similarly, the current or default drive is the drive the system uses whenever
an application supplies a path that does not explicitly specify a drive. If a
drive other than the default drive is specified as part of the new directory
path, this function changes the current directory on that drive but does not
change the default drive. Set Default Drive (Interrupt 21h Function 0Eh) can be
used to change the default drive.